﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using HarmonyLib;
//using RimWorld;
//using Verse;
//namespace Miao
//{
//    [HarmonyPatch(typeof(Page_SelectStoryteller), "CanDoNext")]
//    static class Page_SelectStoryteller_CanDoNext_Postfix
//    {
//        //public static bool Prefix(Page_SelectStoryteller __instance)
//        //{
//        //    if (Current.Game.storyteller.def.defName == "KazeAndJUENightTwins")
//        //    {

//        //    }
//        //    return true;
//        //}
//        static void Postfix()
//        {
//            Messages.Message("成功P进入", MessageTypeDefOf.NeutralEvent);
//            if (Current.Game.storyteller.def.defName != "KazeAndJUENightTwins")
//            {
//                //清空一下天气效果
//                foreach (var map in Find.Maps)
//                {
//                    for (int a = 0; a < map.gameConditionManager.ActiveConditions.Count; a++)
//                    {
//                        if (map.gameConditionManager.ActiveConditions[a].def == GameConditionDefOf.TemperatureDrop)
//                        {
//                            map.gameConditionManager.ActiveConditions[a].End();
//                        }
//                    }
//                }
//                Messages.Message("成功切换非单位", MessageTypeDefOf.NeutralEvent);
//                //Map
//                //GameConditionManager gameConditionManager = parms.target.GameConditionManager;

//            }
//        }
//    }
//}
